package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.CityPinCodeDao;
import com.fqgj.xjd.user.entity.CityPinCodeEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;


@Repository
public class CityPinCodeDaoImpl extends AbstractBaseMapper<CityPinCodeEntity> implements CityPinCodeDao {

    @Override
    public CityPinCodeEntity selectStateCityByPinCode(String pinCode) {
        Map<Object, String> params = new HashMap<>();
        params.put("pincode", pinCode);
        return getSqlSession().selectOne(getStatement("selectStateCityByPinCode"), params);
    }
}